STEP 8: Our sprite is moving too fast!

We need to place the .set_speed() command before any movement that will use that speed setting.

  • In , drag out Set Speed. Drop it before the .move_down() command.
  • Try changing the integer argument in the .set_speed() command. Can you make the sprite move faster? Slower?
  • Set the integer to the speed that you want. Let's try 3!

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("concert") sprite = codesters.Sprite("person1") sprite.move_down(100) sprite.flip_up_down() sprite.move_right(150) sprite.move_left(200) sprite.flip_up_down()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)